package com.zr.bili.Utils;

import java.util.Random;

import static java.lang.Thread.sleep;

/**
 * @author zhangrui
 * @date 2020-04-12 11:08
 */
public class TimeUtils {
    public static void sleep10() throws InterruptedException {
        //创建Random类对象
        Random random = new Random();
        //产生随机数
        int number = random.nextInt(10000 - 8000 + 1) + 8000;
        sleep(number);
    }
}
